<!DOCTYPE html>

<html>

  <head>

    <meta content="text/html; charset=UTF-8" http-equiv="content-type">

    <link media="all" type="text/css" href="css/seat_style.css" rel="stylesheet">

	<script type="text/javascript" src="js/jquery-1.9.1.min.js"></script>

	<script>

		$(document).ready(function(){

			$('td.seat_A, td.seat_buy').click(function(){
                            alert($(this).attr('id'));
				//window.location = "index.do?action=ChangeS&movie=" + <%= request.getParameter("movie") %> + "&slotID=" + <%= request.getParameter("slotID") %> + "&seatNo=" + $(this).attr('id') + "&house=" + <%= request.getParameter("house") %>;
                                parent.window.location = "index.do?action=ChangeS&movie=" + <%= request.getParameter("movie") %> + "&slotID=" + <%= request.getParameter("slotID") %> + "&seatNo=" + $(this).attr('id') + "&house=" + <%= request.getParameter("house") %>;
				$('#errorMessage', top.document).text(${param.errorMsg});
			});
		});

	</script>

  </head>

  <body>

  <div id="seatTableContainer" align="center">
		
        <% if(request.getParameter("house").equals("1")){ %>

        <%@ include file="house1.jsp"%>

        <% } else if(request.getParameter("house").equals("2")){ %>

        <%@ include file="house2.jsp"%>

        <% } else if(request.getParameter("house").equals("3")){ %>

        <%@ include file="house3.jsp"%>

        <% } else if(request.getParameter("house").equals("4")){ %>

        <%@ include file="house4.jsp"%>

        <% } %>
    

    </div>

  </body>

</html>

